<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
  <script>
  /* append()可以传递多个参数
  prepend()*/
  var p=document.createElement("p");
  p.innerHTML="hello world";
  var h1=document.createElement("h1");
  h1.innerHTML="h1";
  document.body.append(p,h1);
  </script>
</body>
</html>